package com.cn.why.film.filmindex.controller;

import com.cn.why.film.filmindex.service.ConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 消费者测试类
 */
@RestController
public class ConsumerController {

    @Autowired
    private ConsumerService service;
    @RequestMapping(value ="/test",method = RequestMethod.GET)
    public String test(){
        return service.test();
    }

    @RequestMapping(value ="/hello",method = RequestMethod.GET)
    public String hello(){
        return "滚滚是猴子";
    }
}
